package com.u3k.mid;

import java.lang.reflect.Field;

public class ba {
    public static Object getFieldOfClass(Object classLaoder, Class<?> cls, String fieldName) {
        Field declaredField = cls.getDeclaredField(fieldName);
        declaredField.setAccessible(true);
        return declaredField.get(classLaoder);
    }

    public static void setFieldOfClass(Object classLoader, Class<?> cls, String fieldName, Object fieldValue) {
        Field declaredField = cls.getDeclaredField(fieldName);
        declaredField.setAccessible(true);
        declaredField.set(classLoader, fieldValue);
    }
}
